﻿using PluginsEdit.Interface;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PluginsEdit
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 加载插件
        /// </summary>
        private void LoadPlugins()
        {
            string plugins = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "plugins");
            string[] dlls = Directory.GetFiles(plugins, "*.dall");
            foreach (string item in dlls)
            {
                Assembly assembly = Assembly.LoadFile(item);
                Type[] types = assembly.GetExportedTypes();
                Type typeEdit = typeof(IEdit);
            }
        }
    }

}
